package com.jade.store.wechat.vo;

import com.jade.bss.base.utils.EntityVo;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 微信参数二维码
 * User: JinYa 2009_jinya@163.com
 * Date: 2016-4-25
 * Time: 15:01
 * Version : 1.0
 * Remark:
 * History:
 */
@Data
@ApiModel(value ="微信参数二维码")
public class WechatQrcodeVo extends EntityVo {
    public static int BUSSINESS_TYPE_STORE=1;//实体店二维码
    public static int BUSSINESS_TYPE_EMPLOYEE=3;//员工二维码
    public static int BUSSINESS_TYPE_CRM=3;//会员二维码
    public static long DEFUALT_EXPIRE_SECONDS=518400;//有效期6天
    public static String QR_SCENE="QR_SCENE";
    public static String QR_LIMIT_SCENE="QR_LIMIT_SCENE";
    public static String QR_LIMIT_STR_SCENE="QR_LIMIT_STR_SCENE";
    /**
     * 二维码业务类型
     */
    private int busType;
    /**
     * 二维码
     */
    private String appid;
    /**
     * 二维码类型，QR_SCENE为临时,QR_LIMIT_SCENE为永久,QR_LIMIT_STR_SCENE为永久的字符串参数值
     */
    private String action_name;
    /**
     * 二维码图片解析后的地址，开发者可根据该地址自行生成需要的二维码图片
     */
    private String sceneStr;
    /**
     * 获取的二维码ticket，凭借此ticket可以在有效时间内换取二维码
     */
    private String ticket;
    /**
     * 该二维码有效时间，以秒为单位。 最大不超过604800（即7天）。
     */
    private long req_expire_seconds;
    /**
     * 该二维码有效时间，以秒为单位。 最大不超过604800（即7天）。
     */
    private long expire_seconds;
    /**
     * 二维码图片解析后的地址，开发者可根据该地址自行生成需要的二维码图片
     */
    private String url;
    /**
     * 场景值
     */
    private String secid;

    @Transient
    private WechatUserVo wechatUser;

    public int getBusType() {
        return busType;
    }

    public void setBusType(int busType) {
        this.busType = busType;
    }

    public String getTicket() {
        return ticket;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }

    public String getAction_name() {
        return action_name;
    }

    public void setAction_name(String action_name) {
        this.action_name = action_name;
    }

    public long getExpire_seconds() {
        return expire_seconds;
    }

    public void setExpire_seconds(long expire_seconds) {
        this.expire_seconds = expire_seconds;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getSceneStr() {
        return sceneStr;
    }

    public void setSceneStr(String sceneStr) {
        this.sceneStr = sceneStr;
    }

    public long getReq_expire_seconds() {
        return req_expire_seconds;
    }

    public void setReq_expire_seconds(long req_expire_seconds) {
        this.req_expire_seconds = req_expire_seconds;
    }

    public String getSecid() {
        return secid;
    }

    public void setSecid(String secid) {
        this.secid = secid;
    }

    public WechatUserVo getWechatUser() {
        return wechatUser;
    }

    public void setWechatUser(WechatUserVo wechatUser) {
        this.wechatUser = wechatUser;
    }
}
